package team.seekers.hula.teamwork.team.team.entity.dao;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 一个团队(或者说一个课程班)
 * </p>
 *
 * @author hbc
 * @since 2021-05-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "Team对象", description = "一个团队(或者说一个课程班)")
@TableName(value = "team")
public class TeamDO implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "团队创建者")
    private String userId;

    @ApiModelProperty(value = "团队名")
    private String name;

    private String description;

    private String courses;

    @ApiModelProperty(value = "专业")
    private String speciality;



    @ApiModelProperty(value = "布置待办数")
    private Integer todoCount;

    @ApiModelProperty(value = "已完成任务数")
    private Integer finishCount;

    @ApiModelProperty(value = "小组人数")
    private Integer memberCount;




    @ApiModelProperty(value = "问题分到的hula币")
    private Double hulaCoin;

    @ApiModelProperty(value = "问题分到的hula积分")
    private Double hulaScore;

    @ApiModelProperty(value = "问题分到的hula币")
    private Double allHulaCoin;

    @ApiModelProperty(value = "问题分到的hula积分")
    private Double allHulaScore;

    @ApiModelProperty(value = "团队")
    private Integer type;

    @TableLogic
    private Integer isDelete;

    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;


}
